import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import Shopcar from '@/components/shopcar/car'
import Newslist from '@/components/news/newslist'
import NewsInfo from '@/components/news/newsinfo'

Vue.use(Router)

export default new Router({
  linkActiveClass: 'mui-active',
  routes: [
    {
      path: '/home',
      component: Home
    },
    {
      path: '/shopcar',
      component: Shopcar
    },
    {
      path: '/news/newslist',
      component: Newslist
    },
    {
      path: '/news/newsinfo/:id',
      component: NewsInfo
    }
  ]
})
